package com.mx.project.pojo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

@Data
public class Comment implements Serializable {
    private Integer cid;

    @NotBlank
    @ApiModelProperty(value = "评论内容",required = true)
    private String content;

    private Integer uid;

    @NotNull
    @ApiModelProperty(value = "商品pid,说明是哪个商品的评论",required = true)
    private Integer pid;

    private Date createTime;

}